package com.cyw.generator.com.service;

import com.cyw.generator.com.entity.TbGraphRelation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaohai.generator.common.domain.JsonBean;
import com.xiaohai.generator.common.domain.PageEntity;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Cyw
 * @since 2022-09-28
 */
public interface ITbGraphRelationService extends IService<TbGraphRelation> {


    /**
     * 添加
     *
     * @param tbGraphRelation 
     * @return JsonBean
     */
    JsonBean add(TbGraphRelation tbGraphRelation);

    /**
     * 删除
     *
     * @param id 主键
     * @return JsonBean
     */
    JsonBean delete(Long id);

    /**
     * 修改
     *
     * @param tbGraphRelation 
     * @return JsonBean
     */
    JsonBean updateData(TbGraphRelation tbGraphRelation);

    /**
     * id查询数据
     *
     * @param id id
     * @return JsonBean
     */
    JsonBean findById(Long id);

    /**
    * 查询列表/分页数据
    *
    * @param page      分页
    * @return          Response
    */
    JsonBean findListByPage(PageEntity page,TbGraphRelation tbGraphRelation);
}
